<template>
	<div id="app">
		<!--顶部-->
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">我的社区</h1>
		</header>
		<div class="mu_login-all mui-content">
			<a @tap="onderurl('/home/select_area','1',1)">
 			<div class="my_shequ">
 				<h3 style="color: #353535;">{{shequ.name}}</h3>
 				<div class="my_shequ_right">
 					<span>更换</span>
 					<i></i>
 				</div>
 			</div>
 			</a>
		</div>
 		<button type="button" class="mui-btn mui-btn-danger">解绑社区</button>
	</div>
</template>

<script>
export default {
	name:'my_shequ',
	data(){
		return{
			shequ:''
		};
	},
	methods:{
		onderurl:function(url,val,type){
			if(type == 1){
				this.$router.push({path:url,query: { type: val }});
			}else{
				this.$router.push(url);
			}
		}
	},
	mounted(){
		this.$axios.post("app/user/get_uid",{uid:3}).then(res=>{
			if(res.code == 0){
				this.shequ = '暂无绑定社区'
			}else{
				this.shequ = res.data
			}
		});
	},
    components:{

    }
}
</script>
<style lang="less" scoped>
@import "../../../static/pxvalue.less";
@import "../../assets/less/my/myshequ.less";
</style>
